﻿using System.Linq.Expressions;

namespace OpenCompiler.CodeGen
{
	public static class ExpressionExtensions
	{
		public static Expression Merge(this Expression first, Expression second)
		{
			Expression expression = null;
			if (null == first)
			{
				expression = second;
			}
			else
			{
				expression = Expression.And(first, second);
			}
			return expression;
		}

	}
}
